package day1223;

import java.util.Scanner;

public class Test7 {

    static void print(int row) {//1,
        int j = 1;
        while (j <= row) {
            int t = 1;
            while (t <= j) {
                System.out.print("*");
                t++;
            }
            System.out.println();
            j++;
        }
    }

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个int数值表示打印的行数：");
        int n=sc.nextInt();
        print(n);//2.
    }




}
